def bitwise_and(m: int, n: int)->int:
    return bitwise_and(m//2, n//2)<<1 if n>m else m

print(bitwise_and(5,7))